var app = getApp()

Page({
  data: {
    isShow: true
  },
  agreeGetUser: function (e) {
    app.showLoading()
    this.setData({
      isShow: false
    })
    app.getUserWxInfo().then(res => {
      app.hideLoading()
      wx.navigateBack()
    }).catch(err => {
      app.toast.error(err, 3000)
    })
  }
})
